<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- 引入js -->
    <script src="./js/vue.js"></script>
</head>

<body>
    <div id="app">
        <h1>我爱你塞北的雪</h1>
        <h2 ref="cur">我爱你豪哥</h2>
        <ul>
            <li>123</li>
            <li v-for="(item,index) in list" :key="index">{{item}}</li>
        </ul>
    </div>
</body>

</html>
<script>
    new Vue({
        el: '#app',
        data:{
           list:[]
        },
        //组件挂载完毕----结构都完整
        mounted() {

           //发请求
           setTimeout(()=>{
             this.list = ['吃饭','睡觉','打豆豆']
           },2000);
        }
    })
</script>